package com.ehomepay.xyxeample.common.enums;


/**
 * 
* @ClassName: CommonStatus 
* @Description: 接口状态描述
* @author xiaoman 
* @date 2015年5月28日 下午11:17:39 
*
 */
public enum RetCodeEnum{

    UNKNOWN("203", "其他错误"),  

    SUCCESS("200","成功"),
    
    ERROR_PARAM("400","参数异常,请检查"),
    
    ERROR_SERVER("500","服务器内部错误"),
    
    /**
   	 * 超时
   	*/
    TIMEOUT("40010","TIMEOUT"),
	
	/**
	 * 被踢出 
	 */
	KICKOUT("40011","KICKOUT"),
	
	/**
	 * 没有权限
	 */
	NO_AUTH("40012","NOAUTH");
    
    private String    key;
    private String value; 

    private RetCodeEnum(String key, String value) {
    	this.key = key;
        this.value = value;
    }

    public String getValue() {
        return this.value;
    }

    public String getKey() {
        return this.key;
    }
}
